//
//  ESCustomNavigationbar.h
//  EasyStyle
//
//  Created by FK on 15/12/18.
//  Copyright © 2015年 FK. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    DefaultStyle,
    WeXinStyle,

} ESCustomNavigationbarStyle;

@interface ESCustomNavigationbar : UIView<UIGestureRecognizerDelegate>
//
@property (nonatomic,assign) ESCustomNavigationbarStyle style;
@property (nonatomic,strong) UIView *navigationBar;
@property (nonatomic,strong) UIView *leftButton;
@property (nonatomic,strong) UIView *rightButton;
@property (nonatomic,strong) UILabel *titleLabel;
//@property (nonatomic,strong) SGPopUpMenu *popUpMenu;
//@property (nonatomic,strong) SGPopUpMenuNew *popUpMenuNew;


- (instancetype)initWithFrame:(CGRect)frame style:(ESCustomNavigationbarStyle)style customColor:(UIColor *)barColor;

- (void)setTitle:(NSString *)title;
- (NSString *)title;


- (void)setLeftBarButtonView:(UIView *)view;
- (void)setRightBarButtonView:(UIView *)view;

- (void)setNavigationBarHidden:(BOOL)hidden animated:(BOOL)animated;
- (void)setNavigationBarHidden:(BOOL)hidden animated:(BOOL)animated complete:(void(^)())block;

- (void)addPopUpMenuWithIcons:(NSArray *)icons titles:(NSArray *)titles target:(id)target;

- (void)addPopUpMenuNewWithIcons:(NSArray *)icons titles:(NSArray *)titles target:(id)target;

- (void)showBackButtonWithActionBlock:(void(^)())actionBlock;

- (void)showPopUpMenu;
- (void)showPopUpMenuNew;


@end
